import React from 'react';
import ReactDOM from 'react-dom';
import {ConfigProvider} from 'antd';
import './index.less';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import moment from 'moment';
import {Provider} from "react-redux";
import store from './Models/Store';
import ErrorBoundaryComponent from "./Components/common/ErrorBoundary.component";
import Main from './Pages/main.page'
import 'dayjs/locale/zh-cn'

moment.defaultFormat = 'YYYY-MM-DD';


ReactDOM.render(
  <Provider store={store}>
      <ConfigProvider locale={zh_CN}>
        <ErrorBoundaryComponent>
          <Main />
        </ErrorBoundaryComponent>
      </ConfigProvider>
  </Provider>,
  document.getElementById('root')
);

